﻿using Web.Client.Services;
using XCore.Extensions;
using XCore.Web.Mvc;
using XCore.Dependency;
using Web.Client.Utils;

namespace Web.Client
{
    public class ClientControllerBase : XCoreControllerBase
    {
        /// <summary>
        /// 日志采集
        /// </summary>
        protected ClientLogger Logger { get; }
        /// <summary>
        /// 登录用户信息
        /// </summary>
        protected ClientSession Session { get; }

        /// <summary>
        /// EF 上下文对象
        /// </summary>
        protected ClientDbContext SCC { get; }
        /// <summary>
        /// 构造
        /// </summary>
        public ClientControllerBase()
        {
            Logger = IocCollection.Resolve<ClientLogger>();
            Session = IocCollection.Resolve<ClientSession>();
            SCC = IocCollection.Resolve<ClientDbContext>();
        }

    }
}
